package web.suzy.oj.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import web.suzy.oj.pojo.entity.common.Announcement;
import web.suzy.oj.pojo.vo.AnnouncementVO;

/**
 * YangSuzy 软件工作室
 * 类名: AnnouncementMapper
 * 描述: ---- 待定 -----
 * 功能: ---- 待定 -----
 *
 * @author YangSuzy
 * Date: 2022/11/25 17:46
 */
@Mapper
@Repository
public interface AnnouncementMapper extends BaseMapper<Announcement> {
    /**
     * 方法名: getAnnouncementList
     * 描述: 获取公告列表
     *
     * @param page     分页对象
     * @param notAdmin 是否为管理员发布
     * @return com.baomidou.mybatisplus.core.metadata.IPage<web.suzy.oj.pojo.vo.AnnouncementVO>
     * @date 2022/11/25 17:49
     * @auther YangSuzy
     **/
    IPage<AnnouncementVO> getAnnouncementList(Page<AnnouncementVO> page, @Param("notAdmin") Boolean notAdmin);
}
